package com.lemon.smartsafety.ui.adapter.common;

import android.view.View;
import android.widget.TextView;

import com.lemon.smartsafety.R;

import kale.adapter.item.AdapterItem;

/**
 * Created by Cooliean on 16/2/1.
 * 空白的占位行
 */
public class SectionHeadView implements AdapterItem<Object> {
    private TextView mTvTitle;
    private String sTitle;

    public SectionHeadView() {
    }

    public SectionHeadView(String title) {
        this.sTitle = title;
    }

    @Override
    public int getLayoutResId() {
        return R.layout.item_section_head;
    }

    @Override
    public void bindViews(View root) {
        mTvTitle = (TextView) root.findViewById(R.id.tv_title);
    }

    @Override
    public void setViews() {

    }

    @Override
    public void handleData(Object object, int position) {
        this.mTvTitle.setText(sTitle);
    }
}
